//
// Created by lijia on 2021/1/12.
//

#ifndef PERISCOPE_SERVO_H
#define PERISCOPE_SERVO_H

#include "pwm.h"

#define PITCH_BIAS 0
#define YAW_BIAS -130

void servo_init();

void servo_arm();

void servo_disarm();

void servo_zeroing();

void servo_fulling();

void servo_set_pitch(float);

void servo_set_yaw(float);

void servo_set_pitch_deg(uint16_t);

void servo_set_yaw_deg(uint16_t);

#endif //PERISCOPE_SERVO_H
